{if condition="$list[0]['type'] eq 2 || $list[0]['type'] eq 1"}
<div id="carousel-example-adver-{$list[0]['adver_id']}" class="carousel slide" data-ride="carousel" style="width: {$list[0]['width']};height: {$list[0]['height']};">
    <ol class="carousel-indicators" {eq name=":count($list)" value="1"}style="display:none"{/eq}>
        {volist name="list" id="lo" key="k"}
        <li data-target="#carousel-example-adver-{$list[0]['adver_id']}" data-slide-to="{$k-1}" class="{eq name='$k-1' value='0'}active{/eq}"></li>
        {/volist}
    </ol>
    <div class="carousel-inner" role="listbox">
        {volist name="list" id="lo" key="k"}
        <div class="item {eq name='$k-1' value='0'}active{/eq}">
            <a href="{$lo.url|get_nav_url}"><img alt="{$lo.title}" src="{$lo.path}" data-holder-rendered="true"></a>
            <div class="carousel-caption">
                <p><a href="{$lo.url|get_nav_url}">{$lo.title}</a></p>
            </div>
        </div>
        {/volist}
    </div>
    {neq name=":count($list)" value="1"}
    <a class="left carousel-control" href="#carousel-example-adver-{$list[0]['adver_id']}" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-adver-{$list[0]['adver_id']}" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
    {/neq}
</div>
{elseif condition="$list[0]['type'] eq 3" /}
<div style="width:{$list['width']};height:{$list['height']};background: #cecece;"><div style="margin:0px auto;width:150px;line-height: 30px;">{$list.advstext}</div></div>
{elseif condition="$list[0]['type'] eq 1" /}
单图广告
{elseif condition="$list[0]['type'] eq 4" /}
代码广告
{/if}